package com.jyw.business.ast.domain.vo.web;

import com.jyw.common.annotation.Conversion;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

@Data
@ApiModel("耗材-申领记录-耗材信息")
@FieldNameConstants
public class AstConsumableClaimReserveVo {
    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("耗材名称")
    private String name;

    /** 数量 */
    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("规格型号")
    private String model;

    @ApiModelProperty("供应商")
    @Conversion(value = ConversionType.DEPT,name = Fields.supplierName)
    private Long supplierId;

    @ApiModelProperty("供应商名称")
    private String supplierName;

    @ApiModelProperty("单位")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.AST_CONSUMABLE_UNIT)
    private String unit;

    @ApiModelProperty("单位标签")
    private String unitToName;
}
